<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<Admintemplate file="Common/Head"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <Admintemplate file="Common/Nav"/>
    <div class="h_a">搜索</div>
    <div class="search_type  mb10">
        <form action="{$config_siteurl}index.php" method="get">
            <input type="hidden" value="Question" name="g">
            <input type="hidden" value="Question" name="m">
            <input type="hidden" value="index" name="a">
            <div class="mb10">
                <div class="mb10">
                    <span class="mr20"> 关键词：
                    <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$keyword}" placeholder="请输入关键字...">
                    <button class="btn">搜索</button>
                    </span>
                </div>
            </div>
        </form>
                        问题总数：<font color="green">{$count}</font>
  </div>
    <form name="myform"  class="J_ajaxForm" action="{:U('Job/index')}" method="post" >
    <div class="table_list">
      <table width="100%">
        <colgroup>
        <col width="35">
        <col width="45">
        <col>
        <col width="6%">
        <col width="10%">
        <col width="6%">
        <col width="15%">
        <col width="15%">
        <col width="8%">
        <col width="12%">
        </colgroup>
        <thead>
          <tr>
            <td><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
            <td>排序</td>
            <td>问题描述</td>
            <td>科目</td>
            <td>姓名</td>
            <td>电话</td>
            <td>QQ</td>
            <td>提交日期</td>
            <td>状态</td>
            <td>管理操作</td>
          </tr>
        </thead>
        <volist name="data" id="vo">
          <tr>
            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="id[]" value="{$vo.id}"></td>
            <td><input name='listorder[]' class="input mr5"  type='text' size='3' value='{$vo.listorder}'></td>
            <td>{$vo.question|str_cut=###,100}</a></td>
            <td>{$vo.kemu}</td>
            <td>{$vo.username|default="匿名用户"}</td>
            <td>{$vo.usertel|default=""}</a></td>
            <td>{$vo.userqq|default=""}</a></td>
            <td>{$vo.inputtime|date="Y-m-d H:i:s",###}</td>
            <td><if condition=" $vo['status'] "><font color=green>已审核</font><else /><font color=red>未审核</font></if></td>
            <td><eq name="vo.status" value="0"><a href="{:U('Question/edit',array('id'=>$vo['id']))}">答疑</a> |</eq> <a href="{:U('Question/delete',array('id'=>$vo['id']))}" class="J_ajax_del" >删除</a></td>
          </tr>
        </volist>
      </table>
      <div class="p10">
        <div class="pages"> {$Page} </div>
      </div>
    </div>
    <div class="btn_wrap">
      <div class="btn_wrap_pd">
      	<label class="mr20"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
        <button class="btn mr10 J_ajax_submit_btn" type="submit" data-action="{:U('Question/delete')}">删除</button>
        <button class="btn J_ajax_submit_btn" type="submit">排序</button>
      </div>
    </div>
</div>
<script src="{$config_siteurl}statics/js/common.js?v"></script>
</body>
</html>